package com.jeeplus.increase.service.dto;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@Data
public class MemberTrendDTO {

    List<String> list =new ArrayList<>();

    /**
     * 第一周
     */
    @ExcelProperty("第一周")
    private String weekOne;

    /**
     * 第二周
     */
    @ExcelProperty("第二周")
    private String weekTwo;

    /**
     * 第三周
     */
    @ExcelProperty("第三周")
    private String weekThree;

    /**
     * 第四周
     */
    @ExcelProperty("第四周")
    private String weekFour;

    public MemberTrendDTO(){}

    public MemberTrendDTO(String weekOne,String weekTwo,String weekThree,String weekFour){
        this.weekOne=weekOne;
        this.weekTwo=weekTwo;
        this.weekThree=weekThree;
        this.weekFour=weekFour;
        List<String> list1 = new ArrayList<>();
        list1.add(weekOne);
        list1.add(weekTwo);
        list1.add(weekThree);
        list1.add(weekFour);
        this.list=list1;
    }

    public List<String> initWeekList(){
        list.add(weekOne);
        list.add(weekTwo);
        list.add(weekThree);
        list.add(weekFour);
        return list;
    }
}
